<template>
  <div>
    <div class="travel">
      <div class="title">
        周末去哪儿
      </div>
      <ul>
        <li class="item border-bottom" v-for="item of weekendList" :key="item.id">
          <div class="item-img-wrapper">
            <img class="item-img" :src="item.imgUrl" />
          </div>
          <div class="item-info">
            <span class="item-title">{{ item.title }}</span>
            <p class="item-desc">{{ item.desc }}</p>
          </div>
        </li>
      </ul>
    </div>

  </div>
</template>
<script>
export default {
  props: {
    weekendList: Array
  },
  data() {
    return {};
  }
};
</script>
<style lang="scss" scoped>
.travel {
  .title {
    height: 1rem;
    line-height: 1rem;
    background: #ebebeb;
    font-size: 0.36rem;
  }
  ul {
    background: #fff;
    li {
      .item-img {
        width: 7.5rem;
        height: 2.76rem;
      }
      .item-info {
        padding-left: 0.2rem;
        margin-bottom: 0.1rem;
        height: 1.2rem;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        .item-title {
          font-size: 0.36rem;
          font-weight: 600;
        }
        .item-desc {
          font-size: 0.26rem;
          color: #858585;
        }
      }
    }
  }
}
</style>
